﻿<%@ Page Language="C#" AutoEventWireup="true" Codebehind="AddStudentInfo.aspx.cs"
    Inherits="LabMS.Web.BaseData.AddStudentInfo" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>增加学生数据</title>
    <link type="text/css" rel="stylesheet" href="../style/screen.css" />
    <!--[if lte IE 6]>
    <link type="text/css" rel="stylesheet" href="../style/ie6.css" />
    <![endif]-->
    <!--[if lte IE 7]>
    <link type="text/css" rel="stylesheet" href="../style/ie7.css" />
    <![endif]-->

    <script type="text/javascript">
      function OpenEditWin(frmWin,width,height) 
      {       
           var me; 
           me = window;  
           var ret = window.showModalDialog(frmWin,me,'dialogWidth='+width +'px;dialogHeight='+height+'px;help:no;status:no');
           if (ret != null) 
           { 
              document.getElementById('tbM').value=ret[0];   //专业ID
              document.getElementById("tbMajor").value = ret[1];//专业名称
           }  
      }
     function OpenEditWin2(frmWin,width,height) 
      {       
           var me; 
           me = window;  
           var ret = window.showModalDialog(frmWin,me,'dialogWidth='+width +'px;dialogHeight='+height+'px;help:no;status:no');
           if (ret != null) 
           { 
              document.getElementById('tbC').value=ret[0];   //班级ID
              document.getElementById("tbClass").value = ret[1];//班级名称
           }  
      }
    </script>

</head>
<body class="mainBody">
    <form id="uiForm" runat="server">
        <div class="main">
            <div id="pageInfo" class="clearfix">
                <div class="title">
                    <label>
                        <a href="BaseDataStudentList.aspx">学生数据</a>
                    </label>
                    &gt;
                    <label>
                        新增学生</label>
                </div>
            </div>
        </div>
        <div id="ui">
            <p>
                <span>学 &nbsp; &nbsp;号：</span><asp:TextBox ID="tbCode" runat="server"></asp:TextBox></p>
            <p>
                <span>姓 &nbsp; &nbsp;名：</span><asp:TextBox ID="tbName" runat="server"></asp:TextBox></p>
            <p>
                <span>密 &nbsp; &nbsp;码：</span><asp:TextBox ID="tbPassword" runat="server" TextMode="Password"></asp:TextBox></p>
            <p>
                <span>性&nbsp; &nbsp; 别：</span><asp:DropDownList ID="ddlSex" runat="server">
                </asp:DropDownList></p>
            <p>
                <span>班 &nbsp;&nbsp; 级：</span><asp:TextBox ID="tbClass" runat="server"></asp:TextBox>
                <input type="button" value="..." class="button" onclick="OpenEditWin2('ClassListByDBlick.aspx',500,300)" />
                &nbsp;<font color="red">*</font></p>
            <asp:TextBox ID="tbC" runat="server"></asp:TextBox>
            <p>
                <span>专 &nbsp;&nbsp; 业：</span><asp:TextBox ID="tbMajor" runat="server"></asp:TextBox>
                <input type="button" value="..." class="button" onclick="OpenEditWin('AddClassChooseMajor.aspx',500,300)" />
                &nbsp;<font color="red">*</font></p>
            <asp:TextBox ID="tbM" runat="server"></asp:TextBox>
            <p>
                <span>入学年月：</span><asp:TextBox ID="tbRxly" runat="server"></asp:TextBox></p>
            <p>
                <span>年级：</span><asp:DropDownList ID="ddlLJ" runat="server">
                </asp:DropDownList></p>
            <%-- <p><span>学生照片：</span><asp:FileUpload ID="FileUpload1" runat="server" /></p>--%>
            <p>
                <span>备注：</span><asp:TextBox ID="tbBZ" runat="server" TextMode="MultiLine" Rows="6"
                    Columns="40"></asp:TextBox></p>
            <p>
                <span></span>
                <asp:Button ID="btnSave" runat="server" Text="保存" CssClass="button" OnClick="btnSave_Click" />
                <%--<input type="button" id="btnCancel" value="返回" class="button" onclick="window.close();" />--%>
            </p>
        </div>
    </form>
</body>
</html>

<script type="text/javascript" src="../js/jQuery/jquery-1.3.1.js"></script>

<script type="text/javascript" src="../js/jQuery/jquery.tooltip.js"></script>

<script type="text/javascript" src="../js/jQuery/jquery.bgiframe.js"></script>

<script type="text/javascript" src="../js/jQuery/jquery.validate.js"></script>

<script type="text/javascript" src="../js/site.js"></script>

<script type="text/javascript">
$(function(){
    $("#uiForm").validate({
        rules:{
            tbRxly:{
                dateISO:true
                }
            },
        messages:{
            tbRxly:{
                dateISO:"时间格式不正确!"
                    }
                }
    });
});

</script>

